package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BusGongdanMapper;
import com.ruoyi.system.domain.BusGongdan;
import com.ruoyi.system.service.IBusGongdanService;
import com.ruoyi.common.core.text.Convert;

/**
 * 工单管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-04
 */
@Service
public class BusGongdanServiceImpl implements IBusGongdanService 
{
    @Autowired
    private BusGongdanMapper busGongdanMapper;

    /**
     * 查询工单管理
     * 
     * @param id 工单管理主键
     * @return 工单管理
     */
    @Override
    public BusGongdan selectBusGongdanById(Long id)
    {
        return busGongdanMapper.selectBusGongdanById(id);
    }

    /**
     * 查询工单管理列表
     * 
     * @param busGongdan 工单管理
     * @return 工单管理
     */
    @Override
    public List<BusGongdan> selectBusGongdanList(BusGongdan busGongdan)
    {
        return busGongdanMapper.selectBusGongdanList(busGongdan);
    }

    /**
     * 新增工单管理
     * 
     * @param busGongdan 工单管理
     * @return 结果
     */
    @Override
    public int insertBusGongdan(BusGongdan busGongdan)
    {
        return busGongdanMapper.insertBusGongdan(busGongdan);
    }

    /**
     * 修改工单管理
     * 
     * @param busGongdan 工单管理
     * @return 结果
     */
    @Override
    public int updateBusGongdan(BusGongdan busGongdan)
    {
        return busGongdanMapper.updateBusGongdan(busGongdan);
    }

    /**
     * 批量删除工单管理
     * 
     * @param ids 需要删除的工单管理主键
     * @return 结果
     */
    @Override
    public int deleteBusGongdanByIds(String ids)
    {
        return busGongdanMapper.deleteBusGongdanByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除工单管理信息
     * 
     * @param id 工单管理主键
     * @return 结果
     */
    @Override
    public int deleteBusGongdanById(Long id)
    {
        return busGongdanMapper.deleteBusGongdanById(id);
    }
}
